package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVO;
import io.micrometer.core.instrument.binder.hystrix.MicrometerMetricsPublisherThreadPool;

import java.util.List;

public interface NursingProjectService {
    /**
     * 分页查询
     * @param name String
     * @param pageNum Integer
     * @param pageSize Integer
     * @param status Integer
     * @return PageResponse<NursingProjectVO>
     */
    PageResponse<NursingProjectVO> pageQuery(String name, Integer pageNum, Integer pageSize, Integer status);

    /**
     * 添加项目
     * @param nursingProject NursingProject
     */
    void addNursingProject(NursingProject nursingProject);

    /**
     * 根据id查询护理项目
     * @param id Long
     */
    NursingProjectVO getNursingProject(Long id);

    /**
     * 更新护理项目
     * @param nursingProject NursingProject
     */
    void updateNursingProject(NursingProject nursingProject);

    /**
     * 启用或者停用护理项目
     * @param id Long
     * @param status Integer
     */
    void startOrStopStatus(Long id, Integer status);

    /**
     * 根据id删除项目
     * @param id Long
     */
    void deleteNursingProject(Long id);

    List<NursingProjectVO> getAllNursingProject();
}
